const HtmlWebpackPlugin=require("html-webpack-plugin")
module.exports={
    entry:"./src/index.ts",
    resolve:{
        extensions:[".ts",".js"]
    },
    module:{
        rules:[
            {
                test:/\.ts$/,loader:"ts-loader"
            }
        ]
    },
    plugins:[
        new HtmlWebpackPlugin({
            template:"./src/template.html"
        })
    ]
}